package com.zpdhy.summer.guice.service.impl;


import com.zpdhy.summer.guice.service.MyDestination;

import javax.inject.Inject;
import java.io.PrintStream;

/**
 * Created by Administrator on 2017/11/21.
 */
public class PrintStreamWriter implements MyDestination {
    private final PrintStream printStream;

    @Inject
    public PrintStreamWriter(PrintStream printStream) {
        super();
        this.printStream = printStream;
    }

    @Override
    public void write(String s) {
        printStream.println(s);
    }
}
